﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Cormant.Mvc.Web
{
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
    public class HtmlAttributeAttribute : Attribute
    {
        public HtmlAttributeAttribute(string name)
        {
            if (string.IsNullOrEmpty(name))
                throw new ArgumentException("name cannot be null or empty.", "name");
            this.Name = name;
        }

        public object IgnoredValue { get; set; }
        public string Name { get; private set; }
    }
}
